<?php 
/* SVN FILE: $Id$ */
/* Sucursal Test cases generated on: 2009-12-06 01:12:59 : 1260077579*/
App::import('Model', 'Sucursal');

class SucursalTestCase extends CakeTestCase {
	var $Sucursal = null;
	var $fixtures = array('app.sucursal', 'app.detalle_jornada', 'app.evento', 'app.profesional_servicio', 'app.sucursal_servicio', 'app.usuario_servicio');

	function startTest() {
		$this->Sucursal =& ClassRegistry::init('Sucursal');
	}

	function testSucursalInstance() {
		$this->assertTrue(is_a($this->Sucursal, 'Sucursal'));
	}

	function testSucursalFind() {
		$this->Sucursal->recursive = -1;
		$results = $this->Sucursal->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Sucursal' => array(
			'id'  => 1,
			'nombre'  => 'Lorem ipsum dolor sit amet',
			'color'  => 'Lorem ipsum dolor ',
			'estado'  => 'Lorem ipsum dolor sit ame'
		));
		$this->assertEqual($results, $expected);
	}
}
?>